	// Main boss path that calls the other boss paths as subroutines. World 4 hard

setSpeed .5
setAccel .002 limit 1
straight below -60

setSpeed .6
moveTo 0 -40 3 20

wait 20
firebullet 270 all 0 0
firebullet 260 all 15 15
firebullet 280 all 15 15
firebullet 250 all 30 30
firebullet 290 all 30 30
repeat -6 times 4

wait 230
straight wrapAny

moveTo 0 -60 5 20

wait 30
//--
firebullet 265 all 10 10
firebullet 260 all 50 50
firebullet 270 all 50 50

right 2.5 toAngle 180
openmouth
wait 20
firebullet 265 all 10 10
firebullet 255 all 50 50
firebullet 275 all 50 50
spawnenemy imageobjectasteroidice1 rockthrown 270 .5
spawnenemy noScoreLargeRock rockthrown 270 .4
left 2.5 toAngle 360
wait 20
spawnenemy imageobjectasteroidice2 rockthrown 270 .5
right 2.5 toAngle 180
wait 20
spawnenemy imageobjectasteroidice3 rockthrown 270 .5
closemouth

moveto 0 -60 5 10
setAngle 270

firebullet 275 all 10 10
firebullet 280 all 50 50
firebullet 270 all 50 50

left 2.5 toAngle 360
openmouth
wait 20
firebullet 275 all 10 10
firebullet 285 all 50 50
firebullet 265 all 50 50
spawnenemy imageobjectasteroidice3 rockthrown 270 .5
spawnenemy noScoreLargeRock rockthrown 270 .4
right 2.5 toAngle 180
wait 20
spawnenemy imageobjectasteroidice4 rockthrown 270 .5
left 2.5 toAngle 360
wait 20
spawnenemy imageobjectasteroidice5 rockthrown 270 .5
closemouth

//--
moveTo 0 -65 5 10
firebullet atplayer all 5 5

openmouth
wait 10
spawnenemy imageobjectasteroidice5 rockthrown 0 .05
spawnenemy imageobjectasteroidice5 rockthrown 180 .05
wait 20
firebullet atplayer all 5 5

closemouth
setAngle 270
wait 20
firebullet atplayer all 5 5

openmouth
wait 20
spawnenemy imageobjectasteroidice4 rockthrown 0 .05
spawnenemy imageobjectasteroidice4 rockthrown 180 .05
wait 20
firebullet atplayer all 5 5

closemouth
wait 20
firebullet atplayer all 5 5

openmouth
wait 20
spawnenemy imageobjectasteroidice3 rockthrown 0 .05
spawnenemy imageobjectasteroidice3 rockthrown 180 .05
wait 20
spawnenemy imageobjectasteroidice2 rockthrown 0 .15
spawnenemy imageobjectasteroidice2 rockthrown 180 .15
wait 20
spawnenemy imageobjectasteroidice1 rockthrown 0 .025
spawnenemy imageobjectasteroidice1 rockthrown 180 .025
spawnenemy noScoreLargeRock rockthrown 0 .0125
spawnenemy noScoreLargeRock rockthrown 180 .0125
wait 40
firebullet atplayer all 5 5

closemouth
firebullet atplayer all 35 35

//--
setSpeed .8
wait 40
moveTo 25 -65 5 3
firebullet 270 all 5 5
firebullet 265 all 25 25
firebullet 275 all 25 25
wait 5
repeat -4 times 1

moveTo -25 -65 5 3
firebullet 270 all 5 5
firebullet 265 all 25 25
firebullet 275 all 25 25
wait 5
repeat -4 times 1

moveTo 0 -65 5 3
firebullet 270 all 5 5
firebullet 269 all 25 25
firebullet 271 all 25 25
firebullet 260 all 75 75
firebullet 280 all 75 75
wait 5
repeat -6 times 1

moveTo 45 -65 5 3
firebullet 270 all 5 5
firebullet 265 all 25 25
firebullet 275 all 25 25
wait 5
repeat -4 times 1

moveTo 0 -65 5 3
firebullet 270 all 5 5
firebullet 269 all 25 25
firebullet 271 all 25 25
firebullet 260 all 75 75
firebullet 280 all 75 75
wait 5
repeat -6 times 1

moveTo -45 -65 5 3
firebullet 270 all 5 5
firebullet 265 all 25 25
firebullet 275 all 25 25
wait 5
repeat -4 times 1

moveTo 0 -65 5 3
firebullet 270 all 5 5
firebullet 269 all 25 25
firebullet 271 all 25 25
firebullet 260 all 75 75
firebullet 280 all 75 75
wait 40

setAngle 270
repeat 1

